package art.client.views;

import art.client.ClientFactory;
import art.shared.entities.LoginInfo;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class LoginView extends Composite implements IsWidget {

	VerticalPanel panel = new VerticalPanel();
	Label loginLabel = new Label("Please login!");
	Button googleLogin = null;

	public LoginView(final ClientFactory factory, LoginInfo loginInfo) {
		panel.add(factory.getMenuView(loginInfo));
		panel.add(loginLabel);
		googleLogin = new Button("Login with Google account");
		panel.add(googleLogin);
		initWidget(panel);
	}

	public Button getGoogleLoginButton() {
		return googleLogin;
	}
}
